﻿@model BbsArticleDetailModel
@{
    CssLink.Add("~/Content/css/bbsArticleDetail.css");
}


<div class="controls pull-right">
    <a href="@Url.BbsArticleList(Model.게시판.ID)" class="btn btn-small">목록으로</a>
    @if (Model.수정권한) {
        <a href="@Url.BbsArticleEdit(Model.게시글.ID)" class="btn btn-small">수정</a>
        <a onclick="게시글삭제(@Model.게시글.ID)"  class="btn btn-small">삭제</a>
        <a onclick="파일첨부대화상자_보이기(@Model.게시글.ID, 2)" class="btn btn-small">파일 첨부하기</a>
    }
</div>

<h1>@Model.게시판.제목</h1>
<hr />

<h2><small>[@Model.게시글.분류]</small> @Model.게시글.제목</h2>
<hr />

<div class="글정보">
    <span>작성자:</span>
    <span>@Model.게시글.작성자</span>
    <span>작성일:</span>
    <span>@Model.게시글.수정일.ToYMDHMS()</span>
</div>
<hr />

 <div>
        @Html.Raw(Model.게시글.내용)
</div>

<div class="첨부파일목록">
    @{ Html.RenderAction_FileList(Model.게시글.ID, 2); }
</div>

@Html.Partial("_파일첨부대화상자")
@Html.Partial("../Comment/_Main", new CommentMainModel { 대상구분 = Consts.덧글대상_게시글, 대상ID = Model.게시글.ID })
